@import "./vars";
@import "./form.scss";

#wechat-menu {
    * {
        box-sizing: border-box;
        font-size: 15px;
    }

    .btn {
        border: 1px solid $grey;
        background: #fff;
        outline: 0;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 3px;
        word-break: keep-all;

        &:hover:not([disabled]) {
            background: $grey;
        }

        &[disabled] {
            color: $grey-1;
        }
    }

    .btn-primary {
        border: none;
        background: $main-color;
        color: white;

        &:hover:not([disabled]) {
            background: #3a963e;
        }

        &[disabled] {
            background-color: #7fd083;
            color: #fff;
        }
    }

    .btn-danger {
        border: none;
        background: $danger-color;
        color: white;

        &:hover:not([disabled]) {
            background: #d46060;
        }

        &[disabled] {
            background-color: #ff998d;
            color: #fff;
        }
    }

    .btn-sm {
        padding: 6px 10px;
    }

    .btn[disabled] {
        cursor: not-allowed;
    }

    a {
        text-decoration: none;
        color: #576b95;
    }

    .pull-right {
        float: right !important;
    }

    .pull-left {
        float: left !important;
    }

    .input {
        height: 35px;
        border: $grey-border;
        padding: 0 0 0 10px;
        outline: 0;
        border-radius: 3px;
        width: 100%;

        &:focus {
            border-color: #cdcdcd;
        }
    }

    .cursor-pointer {
        cursor: pointer;
        user-select: none;
    }

    .grey-1 {
        color: $grey-1;
    }

    .grey {
        color: $grey;
    }

    table {
        border-collapse: collapse;

        border: $grey-border;
        width: 100%;
    }

    td,
    th {
        padding: 5px 10px;
        height: 45px;
        border: $grey-border;
        text-align: left;
    }

    textarea {
        font-family: 'Arial';

        &.input {
            height: auto;
            padding: 10px;
            min-height: 40px;
        }
    }

    .footer-toolbar {
        text-align: center;
        color: $grey-1;
        padding: 20px 0;
        border: $grey-border;
        border-top: none;
    }

    .vertical-middle {
        display: inline-block;
        vertical-align: middle;
    }
}
